/*
 *  Project     : QKeyboardStatistic
 *  Author      : Durachenko Aleksey V. <durachenko.aleksey@gmail.com>, 2011
 *  Licence     : GNU GENERAL PUBLIC LICENSE Version 2
 */
#include "caboutdialog.h"

#include <QFile>
#include "global.h"

// ----------------------------------------------------------------------
CAboutDialog::CAboutDialog(QWidget * parent, Qt::WFlags f) : QDialog(parent, f)
{
    // init gui
    setupUi(this);

    //
    label_FullName->setText(G_FULL_PROGRAM_NAME());

    //
    QFile authors(":/docs/authors.txt");
    authors.open(QIODevice::ReadOnly);
    plainTextEdit_Authors->setPlainText(authors.readAll());

    //
    QFile licence(":/docs/licence.txt");
    licence.open(QIODevice::ReadOnly);
    plainTextEdit_Licence->setPlainText(licence.readAll());
}
